package cn.growthgate.fgo.entity.vo;

import java.util.List;

import cn.growthgate.fgo.common.base.BaseVo;
import cn.growthgate.fgo.entity.Menu;
import cn.growthgate.fgo.entity.enums.MenuType;
import cn.growthgate.fgo.entity.enums.Role;

public class MenuVo extends BaseVo<Menu> {
	
	/**
	 * 主键id
	 */
	private Long id;

	/**
	 * 父菜单id
	 */
	private MenuVo parent;

	/**
	 * 类型
	 */
	private MenuType type;

	/**
	 * 名称
	 */
	private String name;

	/**
	 * 英文名称
	 */
	private String eName;

	/**
	 * 链接地址
	 */
	private String url;

	/**
	 * 排序
	 */
	private Integer sort;

	/**
	 * 可访问角色（没有则不限）
	 */
	private List<Role> roles;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public MenuVo getParent() {
		return parent;
	}

	public void setParent(MenuVo parent) {
		this.parent = parent;
	}

	public MenuType getType() {
		return type;
	}

	public void setType(MenuType type) {
		this.type = type;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String geteName() {
		return eName;
	}

	public void seteName(String eName) {
		this.eName = eName;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public List<Role> getRoles() {
		return roles;
	}

	public void setRoles(List<Role> roles) {
		this.roles = roles;
	}
	
}
